package com.org.api.admin.controller;

import com.org.api.admin.entity.vo.UserVo;
import com.org.api.admin.service.UserService;
import com.org.platform.model.ResultModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duheng
 * @Date 2021/11/13 17:04
 */
@Slf4j
@RestController
public class UserController {

	@Autowired
	private UserService userService;

	@PostMapping(value = {"/api/admin/user/login"})
	public ResultModel login(UserVo userVo) {
		return userService.login(userVo);
	}

}
